﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Runtime.InteropServices;
using System.Text;

namespace NDF.Test
{
    [TestClass]
    public class UnitTest1
    {
        [DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi)]
        protected static extern int mciSendString(string lpstrCommand, StringBuilder lpstrReturnString, int uReturnLength, IntPtr hwndCallback);

        [TestMethod]
        public void TestMethod1()
        {
            int a = mciSendString("set cdaudio door open", null, 0, IntPtr.Zero);

            //Console.ReadLine();

            int b = mciSendString("set cdaudio door closed", null, 0, IntPtr.Zero);
        }
    }
}
